#ifndef CREATECHAT_H
#define CREATECHAT_H

#include <QDialog>
#include <QPushButton>
#include <QBoxLayout>
#include <QFormLayout>
#include <QLabel>
#include <QLineEdit>
#include <QtSql/QSqlQuery>

class createChat : public QDialog
{
public:
    explicit createChat(QWidget *parent = nullptr);

private:
    QLineEdit* titleEdit;
    QLineEdit* nameParticipantEdit;
    QLabel* infoLabel;
    QPushButton* okButton;
    QPushButton* cancelButton;
    QHBoxLayout* buttonsLayout;
    QFormLayout* formLayout;
    QVBoxLayout* commonVLayout;

    void build();
    void connecting();

private slots:
    void createChatOkAction();

public:
    QString getTitleChat();
    QString getNameParticipantChat();
    bool checking;
};

#endif // CREATECHAT_H
